SOURCE_FILES = 	main	\
				TIDA	\
				error	\
				commandParser \

BOOSTLIBS=-lboost_filesystem -lboost_program_options
BOOSTLIBDIR=
BOOSTINCLUDEDIR=
# BIN_NAME is the final name of the binary
BIN_NAME=tida2txt
# General Compilation Flags
MYFLAGS=-O3 -Wall -std=c++0x
#Compiler Constants
COMPILER_CONSTANTS=-DBIN_NAME=$(BIN_NAME)


#Get object names
OBJS=$(patsubst %, %.o, $(SOURCE_FILES))

#CXX is Compiler Name
CXX = g++
#CXX = /home/delgado/mingw32/bin/i386-mingw32-gcc



 
all: $(OBJS)
	@echo Custom makefile for $(BINNAME)
	$(CXX) $(MYFLAGS) -o $(BIN_NAME) $(BOOSTLIBPATH) $(BOOSTLIBS) $(OBJS) 
	
 
clean:
	-rm -rf ./Source/*.o
	-rm -f $(BIN_NAME)
	
%.o : %.cpp
	$(CXX) $(CPPFLAGS) $(BOOSTINCLUDEDIR) $(BOOSTFLAGS) $(COMPILER_CONSTANTS) -c $< -o $@
